/*
 * BuyNowResponse.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.response;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.Goods;
import com.yidiandao.business.data.bean.Shop;
import com.yidiandao.business.data.net.BaseResponse;

import java.util.List;

/** 立即购买 */
public class BuyNowResponse extends BaseResponse {

    @SerializedName("data")
    private List<Data> data;

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public static class Data {

        @Expose
        @SerializedName("rec_id")
        private String recId;

        @Expose
        @SerializedName("goods_number")
        private int goodsNumber;

        @SerializedName("goods_price")
        private float goodsPrice;

        @SerializedName("cart_info")
        private CartInfo cartInfo;

        public CartInfo getCartInfo() {
            return cartInfo;
        }

        public void setCartInfo(CartInfo cartInfo) {
            this.cartInfo = cartInfo;
        }

        public float getGoodsPrice() {
            return goodsPrice;
        }

        public void setGoodsPrice(float goodsPrice) {
            this.goodsPrice = goodsPrice;
        }

        public String getRecId() {
            return recId;
        }

        public void setRecId(String recId) {
            this.recId = recId;
        }

        public int getGoodsNumber() {
            return goodsNumber;
        }

        public void setGoodsNumber(int goodsNumber) {
            this.goodsNumber = goodsNumber;
        }

        @Override
        public String toString() {
            return "{\"rec_id\":\"" + recId + "\",\"goods_number\":\"" + goodsNumber + "\"}";
        }
    }

    public static class CartInfo {

        @SerializedName("supplier")
        private Shop shop;

        @SerializedName("goods")
        private Goods goods;

        public Shop getShop() {
            return shop;
        }

        public void setShop(Shop shop) {
            this.shop = shop;
        }

        public Goods getGoods() {
            return goods;
        }

        public void setGoods(Goods goods) {
            this.goods = goods;
        }
    }
}
